package registnet.base;

import java.util.List;
import java.util.Vector;

/**
 * An implementation of a course which is associated with a plan of coursework;
 * Thus, a type is associated to the course.
 */
public class CourseWork extends AbstractCourse {

	/**
	 * The type of course work.
	 */
	private String type;
	
	/**
	 * Default constructor which creates an "empty" course work.
	 */
	public CourseWork(){
		courseCode = "";
		courseName = "";
		prerequisites = new Vector<Prerequisite>(); 
		unit = 0;
		semester = 0;
		year = 0;
		type = "";
	}

	/**
	 * Returns the type of course work.
	 * @return the type of course work.
	 */
	public String getType() {
		return type;
	}

	/**
	 * Sets the type of course work.
	 * @param type
	 */
	public void setType(String type) {
		this.type = type;
	}
	
	/**
	 * Sets the list of prerequisites of the course.
	 * @param prerequisites
	 */
	public void setPrerequisites(List<Prerequisite> prerequisites){
		this.prerequisites = prerequisites;
	}
	
}
